package cn.ronghuanet.org.domain;

import cn.ronghuanet.base.domain.BaseDomain;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class Department extends BaseDomain {

    @ApiModelProperty(value = "部门名称")
    private String name;
    @ApiModelProperty("部门简介")
    private String intro;
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    private Date create_time;
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    private Date update_time;
    /*  管理员id 关联 的employee 的id  这个部门的负责人 */
    private Long manager_id;
    /* 上级部门的id */
    @ApiModelProperty("上级部门")
    private Long parent_id;
    private String path;
    private Integer state;

    private Employee manager;
    private Department parent;

    private List<Department> children=new ArrayList<>();





}
